package com.ws.haungjia.Service.ServiceImp;

import com.ws.haungjia.Bean.Shangjia;
import com.ws.haungjia.Service.ShangjiaService;
import com.ws.haungjia.mapper.ShangjiaMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ShangjiaServiceImp implements ShangjiaService {
    @Autowired
    private ShangjiaMapper shangjia;
    @Override
    public List<Shangjia> cha() {
        return shangjia.cha() ;
    }

    @Override
    public int tianjia(String name, String lianxi) {
        return shangjia.zengjia(name,lianxi);
    }

    @Override
    public int shan(int id) {
        return shangjia.shan(id);
    }

    @Override
    public Shangjia huixian(int id) {
        return shangjia.huixian(id);
    }

    @Override
    public int xiugai( String sname, String slianxi,int id) {
        return shangjia.xiugai(sname,slianxi,id);
    }
}
